using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class ExceptionHandling
{
	public static void Main(string[] args)
	{
		// Must be in a method that is declared to throw this exception
		Exception ex = new Exception("Something is really wrong."); 
		throw ex;  

		try {
		  y = 0; 
		  x = 10 / y;
		} 
		catch (Exception ex) {
		  Console.WriteLine(ex.getMessage()); 
		} finally {
		  // Code that always gets executed
		}
	}
}
